import request from '@/utils/request'

// 删除用户
export const deleteUser = (params: any) => request(`/api/user-manager/user`, params, 'delete')

// 获取角色列表下拉
export const getRoleList = (params: any) => request(`/api/user-manager/roles`, params, 'get')

// 获取企业列表下拉
export const getOrgList = (params: any) =>
  request(`/api/user-manager/organizationInfos`, params, 'get')

// 获取用户列表
export const getUserList = (params: any) => request(`/api/user-manager/users`, params, 'post')

// 新增用户
export const addUser = (params: any) => request(`/api/user-manager/user`, params, 'post')

// 编辑用户
export const editUser = (params: any) => request(`/api/user-manager/user`, params, 'put')
